repo: Add ostree_repo_import_archive_to_mtree
authorColin Walters <walters@verbum.org>
Thu, 18 Feb 2016 21:49:30 +0000 (16:49 -0500)
committerColin Walters <walters@verbum.org>
Fri, 19 Feb 2016 13:54:04 +0000 (08:54 -0500)
commit3a555114bc22f599d72d95d71c2579fd2345cf6f
treea88ed0c064d01036d4d7da39d8aeb6a59bbd4960
parentb08b1abccdb6f8614750b31f2e3dc572e7b7bc8a
repo: Add ostree_repo_import_archive_to_mtree

This is a more flexible version of the previous
ostree_repo_write_archive_to_mtree() which took a file reference.
This has an extensible options structure, and in particular
now supports `ignore_unsupported_content`.

I plan to use this for importing Docker images which contain device
nodes.  (There's no reason for container images to have those, so
we'll just ignore them).

Also here, just like the export variant, the caller is responsible for
setting up libarchive.
Makefile-tests.am
src/libostree/ostree-repo-libarchive.c
src/libostree/ostree-repo.h
tests/test-libarchive-import.c [new file with mode: 0644]